package com.kust.smarthome.web.controller;


import com.kust.smarthome.web.model.AboutUs;
import com.kust.smarthome.web.service.IAboutUsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author iAuzre
 * @since 2021-06-28
 */
@RestController
@RequestMapping("/aboutUs")
@Api(value = "关于我们相关操作", tags = {"aboutUs-tag"})
public class AboutUsController {

    @Resource
    private IAboutUsService aboutUsService;

    /**
     * 获取所有的关于我们的list
     * @return 返回List<AboutUs>
     */
    @GetMapping("")
    @ApiOperation(value = "查询关于我们的所有数据")
    public List<AboutUs> list() {
        return aboutUsService.list();
    }
}
